package cn.lyh.controller;

import cn.lyh.entities.CommonResult;
import cn.lyh.service.PaymentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

@RestController
public class CircleBreakerController {
    @Resource
    private PaymentService paymentService;


    @GetMapping("/payment/{id}")
    public CommonResult<String> payment(@PathVariable("id")Long id) {
        return paymentService.payment(id);
    }

}
